package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.campusnews.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SchoolUser对象", description="")
public class SchoolUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户自增id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

//    @ApiModelProperty(value = "微信标识id")
//    private String openId;

    @ApiModelProperty(value = "性别")
    private Integer gender;

    @ApiModelProperty(value = "用户名")
    private String nickname;

    @ApiModelProperty(value = "生日")
    private String birthday;

    @ApiModelProperty(value = "城市")
    private String city;

    @ApiModelProperty(value = "头像url")
    private String headPortrait;

    @ApiModelProperty(value = "个人签名")
    private String signature;

    @ApiModelProperty(value = "发布帖子数量")
    private Integer invitationNumber;

    @ApiModelProperty(value = "禁止时长以小时为单位")
    private Date banTime;

    @ApiModelProperty(value = "禁止时长以天数为单位")
    private Date banDay;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @IgnoreSwaggerParameter
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @IgnoreSwaggerParameter
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int page;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int pageSize;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private String sortOrder;
}
